package com.fund.api.client;

import com.fund.api.entity.AvailableShare;
import com.fund.common.pojo.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

import java.util.List;

@FeignClient("product-service")
public interface AvailableShareClient {

    @GetMapping("/availableShare/{clientId}")
    public Result<List<AvailableShare>> getAvailableShare(@PathVariable Long clientId, @RequestParam Long fundId);

    @PutMapping("/availableShare")
    public Result<Boolean> modifyAvailableShares(@RequestBody List<AvailableShare> availableShares);
}
